﻿'Description:批次检验类
'Copyright (c) : 通力凯顿（北京）系统集成有限公司
'Writer:Yuxj
'create Date:2017-10-31
'Rewriter:
'Rewrite Date:
Imports BusinessRule.DTO
Public Interface uLMSExchangeBillIbusiness
    ''' <summary>
    ''' 获取打印时签核人员信息
    ''' </summary>
    ''' <param name="ExchangeBillID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetExchangeBillSign(ByVal ExchangeBillID As String) As DataTable
    ''' <summary>
    ''' 删除周转单/串件单
    ''' create Yuxj20171031
    ''' </summary>
    ''' <param name="ExchangeBillID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DelExchangeBill(ByVal ExchangeBillID As String) As Boolean

    ''' <summary>
    ''' 插入周转单/串件单资料
    ''' </summary>
    ''' <param name="entity"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function InsertExchangeBill(ByVal entity As ExchangeBillInfoDTO) As Boolean

    ''' <summary>
    ''' 获取批次ID
    ''' </summary>
    ''' <param name="strContainer"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetContainerID(ByVal strContainer As String) As String

    ''' <summary>
    ''' 获取员工ID
    ''' </summary>
    ''' <param name="strEmp"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetUserID(ByVal strEmp As String) As String

    Function GetProductID(ByVal strPName As String) As String

    ''' <summary>
    ''' 判断单号及单号ID是否已经存在
    ''' </summary>
    ''' <param name="strBillId"></param>
    ''' <param name="strBillName"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function CheckExists(ByVal strBillId As String, ByVal strBillName As String) As Boolean

    Function GetNextFlowSN(ByVal strBillName As String) As String

    Function UpdateExchangeBill(ByVal entity As ExchangeBillInfoDTO) As Boolean

    Function BoolCnameExists(ByVal strCName As String) As Boolean

    ''' <summary>
    ''' Add by Yuxj20180328 获取需要创建串件单和周转单的任务单资料
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function SearchContainerNoInfo(ByVal para As Dictionary(Of String, String)) As uMESProcessResult

    Function SearchExchangeBill(ByVal para As Dictionary(Of String, String)) As DataTable

    Function GetProductDesc(ByVal Pid As String) As String

    ''' <summary>
    ''' Add by Yuxj20180328 根据批次ID获取零件目录件号列表
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetPartMenuList(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 获取周转或串件数据
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetExchangeBillData(ByVal para As Dictionary(Of String, String)) As uMESProcessResult
End Interface
